//
//  NetworkTools.h
//  OC中AFN封装 同时支持post和get
//
//  Created by 王、小胜 on 16/7/22.
//  Copyright © 2016年 mac. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <AFNetworking/AFNetworking.h>

//网络请求枚举
typedef enum : NSUInteger{
    GET,
    POST,
   
}requestMethod;

@interface NetworkTools : AFHTTPSessionManager

+(instancetype)sharedTools;

-(void)request:(requestMethod)method urlString:(NSString *)urlString parameters:(id)parameters finished:(void(^)(id result,NSError *error))finished;
@end
